package Core;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;

import DTO.Auth;
import DTO.Client;

public class GlobalData {

	// properties
	// processing
	public static String url = "http://gate.qiwi.asia/term2/xml.ashx";
	public static String url2 = "http://103.246.91.153:8081/term2/xml.ashx";// address
																			// for
																			// connetc
																			// to
																			// Local

	public static boolean firstStart = true; // check first start app
	public static Auth auth;
	public static Client client;
	public static String PINCODE;

	public static byte[] log2(InputStream is) throws IOException {
		try {
			ByteArrayOutputStream bos = new ByteArrayOutputStream();
			int i;
			try {
				while (((i = is.read()) != -1)) {
					bos.write(i);
				}
			} finally {
				// is.close();
			}
			byte[] b = bos.toByteArray();
			return b;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
}
